package org.dromara.system.domain.vo;

import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.common.excel.annotation.ExcelDictFormat;
import org.dromara.common.excel.convert.ExcelDictConvert;
import org.dromara.common.translation.annotation.Translation;
import org.dromara.common.translation.constant.TransConstant;
import org.dromara.system.domain.SysMemberGroup;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 会员分组视图对象 sys_member_group
 *
 * @author Lion Li
 * @date 2025-09-18
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = SysMemberGroup.class)
public class SysMemberGroupVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long id;

    /**
     *
     */
    @ExcelProperty(value = "")
    private Long userId;

    /**
     * 组名
     */
    @ExcelProperty(value = "组名")
    private String memberGroupName;

    /**
     * 编号
     */
    @ExcelProperty(value = "编号")
    private String memberGroupCode;

    /**
     * 达标奖励金额
     */
    @ExcelProperty(value = "达标奖励金额")
    private BigDecimal complianceRewards;

    /**
     * 达标考核金额（月）
     */
    @ExcelProperty(value = "达标考核金额", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "月=")
    private BigDecimal complianceCheckAmount;

    /**
     * 达标考核月数
     */
    @ExcelProperty(value = "达标考核月数")
    private Integer complianceCheckMonth;

    /**
     * 售后客服
     */
    @ExcelProperty(value = "售后客服")
    private String afterSaleWaiter;

    /**
     * 售后维修
     */
    @ExcelProperty(value = "售后维修")
    private String afterSalesRepair;

    /**
     * 售后微信
     */
    @ExcelProperty(value = "售后微信")
    private String afterSalesWechat;


    @Translation(type = TransConstant.OSS_ID_TO_URL, mapper = "afterSalesWechat")
    private String afterSalesWechatUrl;

    /**
     * 状态  0正常  1停用
     */
    @ExcelProperty(value = "状态  0正常  1停用")
    private Integer status;

    /**
     * 下单标题
     */
    @ExcelProperty(value = "下单标题")
    private String orderTitle;

    /**
     * 下单金额
     */
    @ExcelProperty(value = "下单金额")
    private BigDecimal orderPrice;

    /**
     * 下单描述
     */
    @ExcelProperty(value = "下单描述")
    private String orderDescription;

    /**
     * 总部地址
     */
    @ExcelProperty(value = "总部地址")
    private String headquartersAddress;

    /**
     * 售后地址
     */
    @ExcelProperty(value = "售后地址")
    private String afterSalesAddress;

    /**
     * 备注
     */
    @ExcelProperty(value = "备注")
    private String remark;

    private Date createTime;


}
